﻿namespace JamesZhao.Engine.Graphics
{
    public class GraphicsManager : Manager
    {
        public GraphicsManager(GameEngine gameEngine) : base(gameEngine)
        {
            VisualsList = new VisualsList();
            MainViewport = new MainViewport();
        }

        public VisualsList VisualsList { get; private set; }
        public MainViewport MainViewport { get; private set; }

        public override void Initialize()
        {
            MainViewport.Initialize();
            MainViewport.Pipeline.VisualsList = VisualsList;
        }

        public override void Update()
        {
            MainViewport.Render();
        }
    }
}